body {
    font-size: 14px;
    font-family: 'comic sans';
    color: #fff;
    background-image: url(../img/bg.jpg);
    background-size: cover;
}
*{
  padding: 0;
  margin: 0;
}
/*滚动条样式*/
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background-color: #eee;
  border-radius: 3px;
}
::-webkit-scrollbar-track-piece {
  opacity: 1;
}
::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: #bbb;
}

.clear:after {
    content: '';
    clear: both;
    display: block;
}

button {
    outline: none;
    cursor: pointer;
}

input:focus {
    outline: none;
}

.container {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 400px;
    padding: 20px;
    border: 1px solid #666;
    border-radius: 5px;
    box-shadow: 5px 5px 20px #000;
    background: rgba(60, 60, 60, 0.3);
}

.header h2 {
    padding: 0;
    margin: 0;
    font-size: 25px;
    text-align: center;
    letter-spacing: 1px;
}

.todoForm {
    margin: 20px 0 30px 0;
}

.todo-ipt-wrap {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.todoContent {
    float: left;
    width: 80%;
    height: 35px;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    box-sizing: border-box;
}

.todo-ipt-wrap .todoBtn {
    width: 20%;
    float: left;
    text-align: center;
    box-sizing: border-box;
    line-height: 35px;
    background-color: #fff;
    border-radius: 0 5px 5px 0;
    border-left: 1px solid #666;
    color: #333;
    cursor: pointer;
}

.tooltip {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #FF4A60;
}
.todoItemWrap{
  height: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.todoItem {
    margin-bottom: 10px;
    color: #333;
    background: #fff;
    border-radius: 5px;
}

.todoItem p {
    position: relative;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 16px;
    border-radius: 5px;
}

.check {
    background-color: #43d25b;
}

.itemTime {
    position: absolute;
    right: 70px;
}

.delBtn, .checkBtn {
    display: none;
    position: absolute;
    right: 3px;
    bottom: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 0;
    margin: 0 3px;
}
.delBtn:focus, .checkBtn:focus {
  outline: none;
}
.checkBtn {
    right: 35px;
}

.todoItem p:hover .delBtn,
.todoItem p:hover .checkBtn {
    display: block;
}

.delBtn img, .checkBtn img {
    height: 20px;
}

@media screen and (max-width: 769px){
  body{
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0;
    bottom: 0;
    background-size: initial;
  }
  .container{
    width: 90%;
    position: absolute;
    left: 5%;
    top: 10%;
    right:auto;
    /* height: auto; */
    box-sizing: border-box;
  }
  .delBtn, .checkBtn {
    display: block;
  }
}